/*
 * Project Name spring-boot-tools
 * File Name TableInfo
 * Package Name com.huxiaosu.toole.autocreate.utils
 * Create Time 2024/7/11
 * Create by name：liujie
 */
package com.huxiaosu.tools.autocreate.utils;

import com.huxiaosu.tools.common.base.extra.AbstractExpandableData;
import lombok.Data;

import java.util.List;
import java.util.Map;

/**
 * Description
 *
 * @author liujie
 * @date 2024/7/11 15:20
 */
@Data
public class TableInfo extends AbstractExpandableData {
    private String tableName;
    private String comment;

    private List<FieldInfo> fieldInfoList;

    public TableInfo(List<FieldInfo> fieldInfoList, String tableName,String comment) {
        this.tableName = tableName;
        this.fieldInfoList = fieldInfoList;
        this.comment = comment;
    }
    public TableInfo(List<FieldInfo> fieldInfoList, Map<String, Object> map, String tableName,String comment) {
        this.tableName = tableName;
        this.fieldInfoList = fieldInfoList;
        this.extraData = map;
        this.comment = comment;
    }
}